#import "SymphonyButterflyView.h"


@implementation SymphonyButterflyView



- (void)setZealInfinite:(SymphonyButterflyModel *)zealInfinite {
	_zealInfinite = zealInfinite;

	//: 配置cell的UI

	if (zealInfinite.lullabyPioneer.count > 0) {
		[self.dabbleVirtuousImageView sd_setImageWithURL:[NSURL URLWithString:zealInfinite.lullabyPioneer[0]] placeholderImage:nil];
	}



	self.nirvanaJuggleLabel.text = zealInfinite.tranquil ? @"YES" : @"NO";

}
- (UIImageView *)dabbleVirtuousImageView {
	if (!_dabbleVirtuousImageView) {
	
        _dabbleVirtuousImageView = [[UIImageView alloc] init];
        _dabbleVirtuousImageView.contentMode = UIViewContentModeScaleAspectFill;
        _dabbleVirtuousImageView.clipsToBounds = YES;
        _dabbleVirtuousImageView.layer.cornerRadius = 18;
        _dabbleVirtuousImageView.layer.masksToBounds = YES;
        UIImage *virtuousFractalHopeful = [UIImage imageNamed:@"images/image_2.png"];
        if (virtuousFractalHopeful) {
	        _dabbleVirtuousImageView.image = virtuousFractalHopeful;
        }
	}
	return _dabbleVirtuousImageView;
}

//: 设置self.infiniteLibertyImageView的圆角
+ (void)rippleImprint:(UIImageView *)hopeCirculate onyx:(CGFloat)blazeHopeful {
	hopeCirculate.layer.cornerRadius = blazeHopeful;
	hopeCirculate.layer.masksToBounds = YES;
}

- (void)radiateOdysseyInstinctInitUIKit {

    //: 描述_0
    UITextView *opusXenial = [UITextView new];
    opusXenial.frame = CGRectMake(7, 37, 89, 158);
    self.tranquilTextView = opusXenial;
    [self addSubview:opusXenial];


    //: 描述_1
    UITextField *waffleQuestFeast = [[UITextField alloc] initWithFrame:CGRectZero];
    waffleQuestFeast.frame = CGRectMake(39, 37, 132, 86);
    self.prismTextField = waffleQuestFeast;
    [self addSubview:waffleQuestFeast];

	//: 描述_2
	[self addSubview:self.dabbleVirtuousImageView];
	[self.dabbleVirtuousImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(87);
		make.height.mas_equalTo(169);
		make.top.equalTo(@(15));
		make.bottom.equalTo(@(16));
	}];


    //: 描述_3
    self.braveHarmonyHummingbirdTextField = [[UITextField alloc] init];
    self.braveHarmonyHummingbirdTextField.frame = CGRectMake(44, 50, 173, 97);
    [self addSubview:self.braveHarmonyHummingbirdTextField];


    //: 描述_4
    UIView *doodleGrit = [[UIView alloc] initWithFrame:CGRectZero];
    self.joyousInstinctView = doodleGrit;
    [self addSubview:doodleGrit];
	[self.joyousInstinctView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(190);
		make.height.mas_equalTo(107);
		make.top.equalTo(@(15));
	}];


    //: 描述_5
    UIView *kaleidoscopeYard = [UIView new];
    self.glistenBinaryView = kaleidoscopeYard;
    [self addSubview:kaleidoscopeYard];
	[self.glistenBinaryView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(72);
		make.height.mas_equalTo(192);
		make.bottom.equalTo(@(22));
	}];


    //: 描述_6
    self.infiniteLibertyImageView = [UIImageView new];
    self.infiniteLibertyImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.infiniteLibertyImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [SymphonyButterflyView rippleImprint:self.infiniteLibertyImageView onyx:2];
    self.infiniteLibertyImageView.frame = CGRectMake(28, 33, 32, 87);
    UIImage *illuminate = [UIImage imageNamed:@"images/image_6.png"];
    if (illuminate) {
	    self.infiniteLibertyImageView.image = illuminate;
    }
    [self addSubview:self.infiniteLibertyImageView];


    //: 描述_7
    self.nirvanaJuggleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    self.nirvanaJuggleLabel.text = @"label_7";
    self.nirvanaJuggleLabel.font = [UIFont systemFontOfSize:12 weight:UIFontWeightMedium];
    self.nirvanaJuggleLabel.textColor = [UIColor colorWithRed:251/255.0 green:161/255.0 blue:115/255.0 alpha:0.6];
    self.nirvanaJuggleLabel.textAlignment = NSTextAlignmentRight;
    self.nirvanaJuggleLabel.numberOfLines = 0;
    [self addSubview:self.nirvanaJuggleLabel];
	[self.nirvanaJuggleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(172);
		make.height.mas_equalTo(121);
		make.bottom.equalTo(@(13));
	}];
}


@end